TapTree\WooCommerce\Gateway\TapTreePaymentGateway D

Total Complexity 145
Dependencies 10
Dependents 4
Total lines 1,036
Lines of code 666
Logical lines of code 374
Comment lines 103
Methods 41
Properties 8

Methods 41

Method Rating Maintainability Complexity Lines of code
validate_api_keys()
B
39 17 67
__construct()
A
40 11 56
generate_api_key_html()
A
42 8 57
process_refund()
A
44 7 45
getInstructions()
A
49 7 33
displayInstructions()
S
48 6 38
asciiDomainName()
S
57 7 15
generate_payment_method_logos_html()
S
51 6 26
action_cart_calculate_totals()
S
56 6 18
isApiKeyValid()
S
62 6 12
idnEncodeDomain()
S
56 5 21
getCartTotal()
S
55 5 19
isOrderPaid()
S
58 4 16
set_payment_description()
S
62 5 10
save_payment_method_logos()
S
62 4 11
process_payment()
S
53 3 23
thankyou_page()
S
59 3 15
getOrderRedirectUrl()
S
57 2 18
getImpact()
S
72 3 5
alterOption()
S
65 3 9
getImpactTitle()
S
67 2 7
init_payment_method_logos()
S
68 2 7
getReturnUrl()
S
59 1 15
isPaidByOtherGateway()
S
74 2 4
get_icon()
S
74 2 4
getPaymentTitle()
S
72 2 6
unsetActiveTapTreePayment()
S
66 2 9
orderDoesNotExistFailure()
S
61 1 14
getWebhookUrl()
S
59 1 14
appendOrderArgumentsToUrl()
S
64 1 11
init_form_fields()
S
79 1 3
initModal()
S
67 1 9
reportPaymentIntentCreateFailed()
S
67 1 7
setOrderPaidWithTapTree()
S
76 1 4
reportPaymentIntentCreateSucceeded()
S
64 1 9
isOrderPaidWithTapTree()
S
79 1 3
getActiveTapTreePaymentId()
S
75 1 4
setCancelledTapTreePaymentId()
S
70 1 6
initIcon()
S
69 1 7
saveTapTreeInfo()
S
76 1 4
isTapTreeAvailable()
S
72 1 5